Effortless Totem-Pole Converter Control Using a Power Factor Correction Peak Current-Mode Controller

This paper expands a recently proposed peak current-mode (PCM) control method for a power factor correction (PFC) boost converter to include the totem-pole converter and solves the controller’s compatibility problem with the totem-pole converter by proposing three input current sensing methods. Using MATLAB/Simulink 2023b, simulation experiments on a 2 kW totem-pole converter utilizing the PFC PCM controller were carried out to assess the performance of the controller with the proposed sensing methods. The findings indicate that under steady-state conditions, all three proposed sensing methods performed input current shaping successfully and yielded nearly identical THD% of about 4.4% in the input current waveform. However, it is noteworthy that method 2, referred to as the memory method, exhibited a sluggish and less robust transient response in comparison to the swift and resilient responses observed with method 1 and method 3. Additionally, the third proposed method, which involves a single current sensor positioned across the input inductor, emerged as the optimal and cost-effective sensing solution. This method achieved the same desirable attributes of fast and robust control while utilizing only a single current sensor, a notable advantage over method 1, which employs two current sensors.


Introduction
Power factor correction is a critical consideration in modern power electronics and electrical systems.Its purpose is to ensure compliance with regulations by improving the power factor and lowering the THD.Recently, totem-pole converters have emerged as a fascinating and promising development.These converters represent a significant advancement in AC/DC power conversion, offering a blend of high efficiency, reduced switching losses, and enhanced power density [1].However, the PFC control for totem-pole converters is more complex compared to conventional PFC converters since the lack of a bridge rectifier produces many challenges in PFC control design [2].This results in much more complex control algorithms which require advanced and expensive digital signal processors (DSPs).
Over the past five years, significant attention has been directed toward the development of advanced control methods for power factor correction, driven by the need to improve efficiency [3,4] and cut the converter's production cost.Such research efforts to reduce costs include eliminating the current sensor using sensorless current control methods [5][6][7][8][9][10][11][12] and model predictive control (MPC) [13][14][15][16][17][18][19].However, current shaping algorithms in sensorless control techniques could be sensitive to synchronization issues [13].Other research tends to reduce converters' costs by adopting advanced control algorithms with low-complexity arithmetic operations.Thus, a much more affordable, low-performance microcontroller could be used.Such methods include peak and valley current control [20], and deadbeat control [21,22].However, in peak and valley control, both analog and digital circuits could be required, while in deadbeat control, performance is affected by distorted grid voltage, circuit parameter mismatch, and control delay [22].
One of the simplest methods to control PFC converters is using peak current-mode control, which compares the peak input current value with the grid voltage waveform.However, this method results in a poor power factor since the average source current must be controlled instead [49].Recently, a promising new peak current-mode control technique suitable for PFC converters has been proposed to control a PFC boost converter [49].This control method compares the peak current to a negative ramp sawtooth waveform to generate the PWM signal for the PFC converter switches, as illustrated in Figure 1c.The peak value of the sawtooth waveform is calculated through a simple set of equations to determine the correct compensation needed to convert the peak current value into the desired average current value.This method can achieve a unity power factor and low THD while preserving the simplicity of the algorithm.Moreover, the control realization of this controller is simple since the sawtooth signal comparison function exists in many DSPs [49].In this paper, the PFC PCM controller is applied and adapted to the totem-pole converter.The main contributions of this paper can be summarized as follows: • Expanding the application and the math of the PFC PCM control method to the totem-pole converter; • Proposing three input current sensing methods for adapting the PCM controller on the totem-pole converter; • Comparing and assessing the performance of each proposed sensing method while simulating the PCM controller on the totem-pole converter.
One of the simplest methods to control PFC converters is using peak current-mode control, which compares the peak input current value with the grid voltage waveform.However, this method results in a poor power factor since the average source current must be controlled instead [49].Recently, a promising new peak current-mode control technique suitable for PFC converters has been proposed to control a PFC boost converter [49].This control method compares the peak current to a negative ramp sawtooth waveform to generate the PWM signal for the PFC converter switches, as illustrated in Figure 1c.The peak value of the sawtooth waveform is calculated through a simple set of equations to determine the correct compensation needed to convert the peak current value into the desired average current value.This method can achieve a unity power factor and low THD while preserving the simplicity of the algorithm.Moreover, the control realization of this controller is simple since the sawtooth signal comparison function exists in many DSPs [49].In this paper, the PFC PCM controller is applied and adapted to the totem-pole converter.The main contributions of this paper can be summarized as follows: • Expanding the application and the math of the PFC PCM control method to the totem-pole converter; • Proposing three input current sensing methods for adapting the PCM controller on the totem-pole converter; The rest of the paper is structured as follows.The PCM control methodology is explained in Section 2.Moreover, the compatibility of the PCM controller to the totem-pole converter is checked and the necessary equations to run the controller are obtained in Sensors 2024, 24, 4910 3 of 19 Section 3. In the same section, three input current sensing methods are proposed to solve the totem-pole converter compatibility problem.In Section 4, the totem-pole converter is simulated with the PCM controller using the proposed sensing methods for performance assessment, and the results are discussed.Lastly, a conclusion that summarizes the results is found in Section 5.

PFC Peak Current-Mode Controller
This section explains the operational principles and the control equations for the PFC PCM controller.As an essential prerequisite, the PFC PCM controller compatibility with any PFC converter lies in the condition that the sensed input current must exhibit a positive ramp throughout the entire grid cycle.For instance, for the PFC boost converter shown in Figure 1a, the sensed switch current i Q (t) satisfies the aforementioned condition since it always has a positive slope in both the positive and negative cycles of the grid voltage, as illustrated in Figure 1b.As for the operation, Figure 1c illustrates the operation of the PFC PCM controller on a boost converter [49].The sensed current i Q (t), which represents the current flowing through the converter switch Q, is compared to a sawtooth function v sawtooth (t) with a negative ramp.The PWM signal turns on as long as v sawtooth (t) is greater than i Q (t), and the PWM on-time is determined by the peak value of v sawtooth (t), which is calculated such that the source average input current follows the sinusoidal grid voltage waveform, thus achieving a unity power factor and low THD. Figure 2 represents the PFC PCM control block diagram for the boost converter.

•
Comparing and assessing the performance of each proposed sensing method while simulating the PCM controller on the totem-pole converter.
The rest of the paper is structured as follows.The PCM control methodology is explained in Section 2.Moreover, the compatibility of the PCM controller to the totem-pole converter is checked and the necessary equations to run the controller are obtained in Section 3. In the same section, three input current sensing methods are proposed to solve the totem-pole converter compatibility problem.In Section 4, the totem-pole converter is simulated with the PCM controller using the proposed sensing methods for performance assessment, and the results are discussed.Lastly, a conclusion that summarizes the results is found in Section 5.

PFC Peak Current-Mode Controller
This section explains the operational principles and the control equations for the PFC PCM controller.As an essential prerequisite, the PFC PCM controller compatibility with any PFC converter lies in the condition that the sensed input current must exhibit a positive ramp throughout the entire grid cycle.For instance, for the PFC boost converter shown in Figure 1a, the sensed switch current  () satisfies the aforementioned condition since it always has a positive slope in both the positive and negative cycles of the grid voltage, as illustrated in Figure 1b.As for the operation, Figure 1c illustrates the operation of the PFC PCM controller on a boost converter [49].The sensed current  (), which represents the current flowing through the converter switch , is compared to a sawtooth function  () with a negative ramp.The PWM signal turns on as long as  () is greater than  (), and the PWM on-time is determined by the peak value of  (), which is calculated such that the source average input current follows the sinusoidal grid voltage waveform, thus achieving a unity power factor and low THD.As illustrated in Figure 1c, at every switching cycle, the peak value of  () is determined by finding the point where  () intersects with  () at time  , where  is the time period and  is the duty ratio, which can be written as: where  is the sensing resistance used to measure  () .The sawtooth equation  () within one switching cycle is: where ( − 1)   and  is the switching cycle period number.As shown in Figure 1c, when  () intersects with  () at ,  () becomes: As illustrated in Figure 1c, at every switching cycle, the peak value of v sawtooth (t) is determined by finding the point where v sawtooth (t) intersects with i Q (t) at time DT, where T is the time period and D is the duty ratio, which can be written as: where R sense is the sensing resistance used to measure i Q (t).The sawtooth equation v sawtooth (t) within one switching cycle is: where (n − 1)T ≤ t ≤ nT and n is the switching cycle period number.As shown in Figure 1c, when i Q (t) intersects with v sawtooth (t) at DT, i Q (t) becomes: where I 2 is the peak value of i Q (t) which can be written as: where I L is the average input inductor current, and ∆i L is the input inductor current ripple.Substituting (2), ( 3) and ( 4) into (1) results in: Equation ( 5) serves as the general equation for determining the peak value of v sawtooth (t) throughout each cycle.Apart from the switch's on-time T on , which we will delve into further in Section 3, these calculations stand as the sole computations required to perform input current shaping.An additional benefit of this control strategy is that tuning is unnecessary, as all parameters in Equation ( 5) can be determined.Thus, introducing this control method to totem-pole converters possesses the potential to reduce their overall cost, as a less powerful DSP unit could be used.However, to ensure the compatibility of the control algorithm on the totem-pole converter or any PFC converter, Equation ( 5) must be validated before integration into the control system.This can be done by showing that the average input inductor current is following the grid voltage waveform v s (t), as shown below: where G is a constant value.To summarize, below are the steps to determine and validate V Ramp peak for PFC converters.

1.
Understand the operation of the PFC converter; 2.
Find the PFC converter's main parameters (e.g., I L , ∆i L , and D); 3.

4.
Check if the calculated value in step c satisfies Equation ( 6).

Applying the PFC PCM Controller to the Totem-Pole Converter
In this section, the calculation and validation steps for V Ramp peak of the totem pole converter are explained in more detail.For interested readers, the calculations made to check if the PCM controller is compatible with the PFC buck-boost, the SEPIC, and the Cuk converters can be found in Appendix A. The control equations for the PFC boost converter are not covered since detailed work has been already published in [49].

Determining V Ramp peak for the Totem-Pole Converter
In this paper, the totem-pole converter operates in continuous conduction mode (CCM) with four operational modes during the positive and negative cycle of the AC grid voltage, as illustrated in Figure 3, where Q1 and Q2 are high-speed switches (e.g., SiC MOSFETs, GaNFETs, etc.), whereas Q3 and Q4 are low-speed switches (e.g., Si MOSFETs, IGBT, etc.).Q1 and Q2 operate at high-switching frequencies with both functions of boosting and rectifying, while the low-frequency switches are responsible for rectifying the grid voltage [50].Thus, Q3 and Q4 in Figure 3a could be replaced with the diodes D1 and D2 demonstrated in Figure 3b without causing any changes to the PFC PCM controller.
To calculate V Ramp peak , the totem-pole converter's main parameters must be found.This can be done by analyzing the converter at every operational mode [51].However, it is sufficient to analyze the converter within the positive cycle, since the totem-pole controller ensures that it operates symmetrically with respect to the positive and negative halves of the AC input waveform.Thus, the analysis for the positive AC line cycle V s is as follows: halves of the AC input waveform.Thus, the analysis for the positive AC line cycle  is as follows: When 1 and 4 are closed, while 2 and 3 are open: The change in the inductor current and the capacitor voltage while 2 and 4 are closed is found by modifying ( 7) and ( 8), respectively [51].
Alternatively, Equations ( 11) and ( 12) can also be computed while 2 and 4 are open: When Q1 and Q4 are closed, while Q2 and Q3 are open: The change in the inductor current and the capacitor voltage while Q2 and Q4 are closed is found by modifying ( 7) and ( 8), respectively [51].
Alternatively, Equations ( 11) and ( 12) can also be computed while Q2 and Q4 are open: In one switching cycle, the total change in the inductor current and the capacitor voltage is zero [51].Therefore, equating (11) and ( 13) to zero and ( 12) and ( 14) determine the inductor current and the capacitor voltage equations.
By rearranging (15), the duty ratio D is obtained.
Now that the totem-pole converter's main parameters are found, V Ramp peak equation can be found by substituting (11) and ( 16) into ( 5) Equation ( 18) can be simplified further to where the output voltage loop is defined as follows: It is worth noting that there is no need to calculate the value of G v in (20) since the output voltage loop control for the totem-pole converter can be relied on to give the correct value.Moreover, since the value of T on is almost equal in two consecutive switching cycles, its value can be calculated from the previous cycle [49].

Validating V Ramp peak for the Totem-Pole Converter
Equation ( 19) can be validated by checking if (6) is satisfied.From Figure 1c, the inductor current rises from I 1 to I 2 during T on .
Furthermore, the average inductor current is determined as By substituting (21) with (22), we obtain From Figure 1c, we observe that Sensors 2024, 24, 4910 7 of 19 and the input-output relationship of the totem-pole converter can be written as Substituting ( 24) into (25): Substituting ( 29) and ( 26) into ( 23): Since G v is constant at steady-state operation, I L avg follows the source voltage waveform.Therefore, this control method could achieve a unity power factor.

Totem-Pole Converter's Sensing Challenges and Proposed Solutions
Accurate and reliable current sensing is crucial in AC/DC power electronics converters, especially in those designed for high-power and high-frequency operation as in the totempole converter.These challenges arise from factors such as accuracy, bandwidth, isolation requirements, temperature stability, and the ability to effectively measure both AC and DC currents.The three current sensing methods: shunt, current transformer (CT), and hall effect (HE), are the commonly used current sensors in power electronics applications.Each offers unique advantages and considerations.Thus, careful consideration is necessary when choosing the current sensor.Table 1 presents a summarized performance comparison of the shunt, the current transformer, and the hall effect sensor, along with their weaknesses.Shunt sensing provides high accuracy ranging from 0.1% to 2% [52], but it requires careful design for safety as it is not inherently isolated [53].It can also cause higher power losses than CT and HE current sensors, which could be significant in high-efficiency power converters.Conversely, CT sensing offers excellent isolation, making it safer.It also has lower power losses than the shunt sensor.However, it cannot measure DC currents [53].It also suffers from saturation due to hardware limitations, which reduces the effective measurable current range.Hall effect sensing, on the other hand, is non-invasive and provides isolated measurements.It is also capable of measuring DC currents, which CTs cannot do, but at the expense of higher costs [54], higher temperature drift [52], and higher EMI susceptibility [53].Sensor placement also poses a significant challenge for integrating the PFC PCM controller into the totem-pole converter.As shown in Figure 4, it is not possible to apply the exact PFC PCM control algorithm to the totem-pole converter by placing a current sensor on a single switch, as with the PFC boost converter.This is because, unlike the boost converter, the current across any totem-pole switch Q n within its switching period does not have a positive ramp in both the positive and the negative grid cycles.As mentioned earlier in Section 2, it is necessary for the measured input current to have a positive ramp across the full grid cycle for the PCM controller to be compatible with the PFC converter [49].
To mitigate this problem, a modification to the control technique should be considered.Figure 5 shows the proposed sensor placement methods of the current sensors along with a demonstration of how the input current waveform is measured and the controller configuration for each method.
Sensors 2024, 24, x FOR PEER REVIEW 8 of 19 earlier in Section 2, it is necessary for the measured input current to have a positive ramp across the full grid cycle for the PCM controller to be compatible with the PFC converter [49].To mitigate this problem, a modification to the control technique should be considered.Figure 5 shows the proposed sensor placement methods of the current sensors along with a demonstration of how the input current waveform is measured and the controller configuration for each method.earlier in Section 2, it is necessary for the measured input current to have a positive ramp across the full grid cycle for the PCM controller to be compatible with the PFC converter [49].To mitigate this problem, a modification to the control technique should be considered.Figure 5 shows the proposed sensor placement methods of the current sensors along with a demonstration of how the input current waveform is measured and the controller configuration for each method.Method 1 is an adaptation to the sensing method used for the PFC boost converter controller.As shown in Figure 5a, there are two current sensors.One is placed across the switch Q2 to measure the current for the positive half cycle of the grid, while the other current sensor is placed across the switch Q1 to measure the negative cycle of the grid.As suggested in [49], CT sensors can be utilized to measure the current through the two switches.Placing shunt sensors is indeed feasible; however, it comes with the cost of potentially higher power losses.HE sensors are not favored due to their restricted bandwidth compared to shunts and CTs, high-temperature drift, and elevated costs.Since this method is an adaptation of the method used in the PFC boost converter, it is expected to get a high-quality input current source with low THD values.However, from the economical perspective, utilizing a single input current sensor is preferable.

Method 2: The Memory Method
To use a single current sensor, method 2 relies on storing the PWM signal that controls the switches within the positive half cycle, and once the negative cycle begins, it releases the stored PWM signal after inverting it.This is possible because the PWM signal required to control the input current at the positive half cycle is the inverted version of the signal.After all, switch Q1 and Q2 reverse roles in the negative cycle for proper current rectification.Figure 5b illustrates how the control method can be implemented.The PWM signal is stored in the form of a delay function (z d ) that delays the PWM signal for a half cycle.The parameter d in the delay function can be calculated as follows: where T Vs is the grid voltage period, and T s is the sampling time the system is using to run the controller.Regarding the current sensor type, method 2 shares the same preferences as method 1, namely the current transformer.

Method 3: Sensing the Inductor Current i L
As shown in Figure 5(c.1-c.3), the input inductor current waveform of the totem-pole converter is the combination of both i Q1 (t) and i Q2 (t), which means a single current sensor can be placed across the input inductor for proper PCM controller integration without using two current sensors, as in method 1, or sacrificing memory resources, as in method 2. This is possible because the inductor current waveform starts at every switching cycle with a positive ramp current across the full grid cycle.In this control method, since CTs cannot measure the DC component of the inductor current, they are deemed unsuitable for this application.Consequently, a shunt current sensor is utilized instead.
In the next section, the three proposed sensing methods are simulated on the totempole converter using the PFC PCM controller and compared to find the best sensing method.

Simulation Results and Discussion
In this section, we present the results of simulating a 2 kW totem-pole converter utilizing the PFC PCM controller.The primary focus of our investigation involved the comparison of the three proposed current sensing methods employed on the PFC controller, and how it affects the THD of the input current and the robustness of the inner-loop controller against load disturbances.For simplification purposes, the totem-pole converter with diode line rectification was simulated.However, the controller remained unchanged when the diodes were replaced with semiconductor switches under the condition that these switches were controlled to behave like a diode.Moreover, it should be emphasized that the outer-loop controller, which regulated the output voltage to 600 V, fell outside the scope of this study.Thus, the outer-loop controller was a simple PI controller which was simply tuned using the trial-and-error approach, ensuring that its bandwidth was slower than that of the inner-loop controller [55], yet faster than twice the frequency of the grid voltage.
The controller parameters for the outer-loop controller were kept unchanged across all the simulation experiments.
In this study, MATLAB/Simulink 2023b served as the primary tool for conducting the simulation experiments.For enhanced model accuracy, Simscape blocks were utilized to model physically the totem-pole converter circuit.The simulation parameters utilized for all experiments are detailed in Table 2.A simulation step time of 0.1 microseconds was employed to ensure precise capturing of the circuit's dynamic behavior.Notably, Simscape blocks facilitated the incorporation of commercially available SiC MOSFET characteristics, enhancing the fidelity of the simulations.Thus, based on the totem-pole rated current along with the current and voltage stresses across the switches, the Infineon (Munich, Germany) AIMW120R080M1 SiC MOSFET was selected and its parameters were integrated into the Simscape MOSFET model, as outlined in Table 3.The Simscape MOSFET model considers the on-state drain current and drain-to-source voltage characteristics and the internal diode characteristics.It also considers all the SiC MOSFET's switching losses.Figure 6 illustrates the SiC MOSFET characteristics used in our simulation experiments, which closely correspond to the specifications provided in the datasheet, affirming the accuracy and reliability of our simulation methodology.The Simulink simulation files for the three sensing methods can be found in Supplementary Material Simulations S1-S3.As demonstrated in Figure 5a-c, the controller was implemented in Simulink as follows: 1.
V Ramp peak was calculated and multiplied by a unity negative-ramp sawtooth function where its frequency determined the switching frequency of the totem-pole converter.
The on-time T on was calculated from the previous switching cycle.G v was obtained from the outer voltage loop, which was selected to be a PI controller.

2.
The scaled sawtooth signal was then compared to the sensed current of the respective sensing method.

3.
The SR flipflop was set at the beginning of every switching cycle as long as the measured current was less than the scaled sawtooth signal.The output of the SR flipflop Q gave the PWM signal for switch Q2 and the complementary signal for switch Q1 within the positive half cycle of the grid voltage.In the negative half cycle, and as we previously discussed, Q1 and Q2 functions were inverted.Thus, their PWM signals were inverted.As for the first experiment, the totem-pole converter, employing each of the proposed current sensing methods for PFC control, was simulated to assess the startup response.Figure 7 shows the simulated totem-pole converter waveforms produced by the three proposed sensing methods.The displayed waveforms include the grid current and the output voltage, along with an expanded view of two cycles of both the grid voltage and the grid current at steady state, provided for a closer inspection.Method 1 and method 3 had similar responses in which the input current had a distortion at the first half cycle, but quickly followed the grid voltage sinusoidal waveform.This was also true for the output voltage response.However, although the controller for method 2 appeared to run properly in the positive half cycle of the grid voltage waveform, the negative half cycle of the input current was highly distorted.This distortion diminished with time until it reached the same level produced by methods 1 and 3 at steady state.
Figure 8a represents the fast Fourier-transform (FFT) analysis of the input current waveform for each sensing method captured at the 25th cycle.The THD percentage of the input current waveforms, which was in the range of 4.43-4.42%,showed how a similar power quality could be obtained at steady-state using any of the proposed sensing methods, but the time to reach this low THD value varied.Figure 8b reports the THD values for the input current of the totem-pole converter at every cycle for the first 25th cycles (refer to Supplementary Material Spreadsheet S1).The figure shows that the THD values for methods 1 and 3 closely followed a similar trend over time, where at the first cycle, the THD value was around 46%.Then, the THD value decreased dramatically to about 4.1% in both methods in the second cycle, converging rapidly to the power quality standards.Finally, the THD for both methods 1 and 3 continued at low values, settling at around 4.4%.In contrast, method 2 had a significantly higher THD value in the first cycle, and its values continued to fluctuate until it settled in the 11th cycle, which was 81% more time when compared to methods 1 and 3.It is worth noting that we define the THD settling time here as the number of grid cycles required for the input current to reach and remain within 10% of the steady-state THD value.
As for how fast the system was simulated employing each sensing method, Simulink's simulation execution time of one grid cycle for each method was measured.To reduce the results' error caused by the fluctuating CPU performance due to uncontrollable conditions, the experiments were repeated three times, and the results were averaged (refer to Supplementary Material Spreadsheet S2).The simulation was executed on MATLAB 2023b and using a Lenovo ThinkPad T480 laptop with an i7-8550U CPU and 16GB RAM, ranking the speed from the fastest to the slowest.The results reveal that method 1 was the fastest with an execution time of 7.76 s, closely followed by method 3 at 8.53 s, and ultimately, method 2, which exhibited the longest execution time in the sequence, taking 91.45As for the first experiment, the totem-pole converter, employing each of the proposed current sensing methods for PFC control, was simulated to assess the startup response.Figure 7 shows the simulated totem-pole converter waveforms produced by the three proposed sensing methods.The displayed waveforms include the grid current and the output voltage, along with an expanded view of two cycles of both the grid voltage and the grid current at steady state, provided for a closer inspection.Method 1 and method 3 had similar responses in which the input current had a distortion at the first half cycle, but quickly followed the grid voltage sinusoidal waveform.This was also true for the output voltage response.However, although the controller for method 2 appeared to run properly in the positive half cycle of the grid voltage waveform, the negative half cycle of the input current was highly distorted.This distortion diminished with time until it reached the same level produced by methods 1 and 3 at steady state.
Sensors 2024, 24, x FOR PEER REVIEW 12 of 19 s to complete.The reason why method 2 took significantly more execution time was that, as per Equation ( 28) and Table 2, the delay function stored 100,000 values of the PWM signal from the positive grid cycle interval to control the input current in the negative cycle.This significantly slowed down the control algorithm.The performance assessment values for the aforementioned experiments are reported in Table 4.   Figure 8a represents the fast Fourier-transform (FFT) analysis of the input current waveform for each sensing method captured at the 25th cycle.The THD percentage of the input current waveforms, which was in the range of 4.43-4.42%,showed how a similar power quality could be obtained at steady-state using any of the proposed sensing methods, but the time to reach this low THD value varied.Figure 8b reports the THD values for the input current of the totem-pole converter at every cycle for the first 25th cycles (refer to Supplementary Material Spreadsheet S1).The figure shows that the THD values for methods 1 and 3 closely followed a similar trend over time, where at the first cycle, the THD value was around 46%.Then, the THD value decreased dramatically to about 4.1% in both methods in the second cycle, converging rapidly to the power quality standards.Finally, the THD for both methods 1 and 3 continued at low values, settling at around 4.4%.In contrast, method 2 had a significantly higher THD value in the first cycle, and its values continued to fluctuate until it settled in the 11th cycle, which was 81% more time when compared to methods 1 and 3.It is worth noting that we define the THD settling time here as the number of grid cycles required for the input current to reach and remain within 10% of the steady-state THD value.To assess how the proposed sensing methods stand against external disturbances, a load disturbance test was conducted on the totem-pole converter at 0.2 s, during which the load transitioned from 2 kW to 1 kW. Figure 9 shows the simulated totem-pole converter waveforms produced by the three proposed sensing methods.The input current As for how fast the system was simulated employing each sensing method, Simulink's simulation execution time of one grid cycle for each method was measured.To reduce the results' error caused by the fluctuating CPU performance due to uncontrollable conditions, the experiments were repeated three times, and the results were averaged (refer to Supplementary Material Spreadsheet S2).The simulation was executed on MATLAB 2023b and using a Lenovo ThinkPad T480 laptop with an i7-8550U CPU and 16GB RAM, ranking the speed from the fastest to the slowest.The results reveal that method 1 was the fastest with an execution time of 7.76 s, closely followed by method 3 at 8.53 s, and ultimately, method 2, which exhibited the longest execution time in the sequence, taking 91.45 s to complete.The reason why method 2 took significantly more execution time was that, as per Equation ( 28) and Table 2, the delay function stored 100,000 values of the PWM signal from the positive grid cycle interval to control the input current in the negative cycle.This significantly slowed down the control algorithm.The performance assessment values for the aforementioned experiments are reported in Table 4.To assess how the proposed sensing methods stand against external disturbances, a load disturbance test was conducted on the totem-pole converter at 0.2 s, during which the load transitioned from 2 kW to 1 kW. Figure 9 shows the simulated totem-pole converter waveforms produced by the three proposed sensing methods.The input current waveforms showed a similar behavior to that in Figure 7 at the moment of the load change: methods 1 and 3 responded robustly and quickly to the load change, while method 2 had difficulties maintaining a stable state.Both method 1 and method 3 reached steady-state operation within approximately 0.06 s following the load change.In contrast, method 2 required approximately 0.5 s to return to the original THD% value.
Sensors 2024, 24, x FOR PEER REVIEW 13 of 19 waveforms showed a similar behavior to that in Figure 7 at the moment of the load change: methods 1 and 3 responded robustly and quickly to the load change, while method 2 had difficulties maintaining a stable state.Both method 1 and method 3 reached steady-state operation within approximately 0.06 s following the load change.In contrast, method 2 required approximately 0.5 s to return to the original THD% value.Following the analysis of the two simulation experiments conducted, we derived the following insights: -The integration of sensing method 1 or 3 into the PFC PCM controller yielded nearly identical input current and output voltage waveforms, leading to similar behavior and THD% value that conformed to the power quality standards.The primary distinction lay in the sensor count: method 3 employed a single switch, in contrast to method 1's two switches.This offered a notable advantage to method 3, enhancing controller simplicity and cost-effectiveness, because managing a single sensor was easier than attempting to merge the current sensing data of two sensors for PFC control.However, this came at the cost of using a shunt current sensor, which normally has higher power losses.Thus, by proposing several sensing techniques that all satisfy the power quality standards, designers are afforded the flexibility to select the most appropriate solution based on their specific needs and design constraints.-The concept of method 2 is based on the assumption that the totem-pole converter has an identical operation in the two half cycles.However, an examination of the waveforms in Figures 7 and 9 reveals a discrepancy: while the input current waveform remained sinusoidal during the positive half cycle when employing method 2, it became severely distorted in the negative half.This indicates that the totem-pole operation was not identical in both half cycles.Moreover, the practice of storing the PWM control signal from the positive half and applying it to the negative half led to this distortion and a sluggish response to sudden load variations.Additionally, method 2 required substantial memory resources, resulting in simulation times that were more than 10 times longer than those of methods 1 and 3. Therefore, given these operational challenges, method 2 is not suitable for practical use without modification.Overall, the three sensing methods proposed open up new opportunities by making the PFC PCM controller compatible with the totem-pole converter, cutting their cost and simplifying the controller's architecture, which has profound implications for the design Following the analysis of the two simulation experiments conducted, we derived the following insights: - The integration of sensing method 1 or 3 into the PFC PCM controller yielded nearly identical input current and output voltage waveforms, leading to similar behavior and THD% value that conformed to the power quality standards.The primary distinction lay in the sensor count: method 3 employed a single switch, in contrast to method 1's two switches.This offered a notable advantage to method 3, enhancing controller simplicity and cost-effectiveness, because managing a single sensor was easier than attempting to merge the current sensing data of two sensors for PFC control.However, this came at the cost of using a shunt current sensor, which normally has higher power losses.Thus, by proposing several sensing techniques that all satisfy the power quality standards, designers are afforded the flexibility to select the most appropriate solution based on their specific needs and design constraints.- The concept of method 2 is based on the assumption that the totem-pole converter has an identical operation in the two half cycles.However, an examination of the waveforms in Figures 7 and 9 reveals a discrepancy: while the input current waveform remained sinusoidal during the positive half cycle when employing method 2, it became severely distorted in the negative half.This indicates that the totem-pole operation was not identical in both half cycles.Moreover, the practice of storing the PWM control signal from the positive half and applying it to the negative half led to this distortion and a sluggish response to sudden load variations.Additionally, method 2 required substantial memory resources, resulting in simulation times that were more than 10 times longer than those of methods 1 and 3. Therefore, given these operational challenges, method 2 is not suitable for practical use without modification.
Overall, the three sensing methods proposed open up new opportunities by making the PFC PCM controller compatible with the totem-pole converter, cutting their cost and simplifying the controller's architecture, which has profound implications for the design and manufacturing processes.Furthermore, this controller eliminates the need for tuning, simplifying its use relative to alternative PFC input current controllers designed for the totem-pole converter.These enhancements will likely lead to increased adoption and broader application of the totem-pole converter technology in the industry.It is now clear that the memory method (method 2) is not an appropriate solution for the peak current mode controller of the totem-pole converter due to its poor input current transient response and lengthy execution time.Moreover, the results imply that method 3, which employs a single current sensor, could be used to apply the PFC PCM controller to reduce costs without compromising on the power quality and stability of using two current sensors, as in method 1.

Conclusions
This paper explores the application of the PFC PCM controller in totem-pole converters.While totem-pole converters offer significant advancements in AC/DC power conversion, their PFC control is inherently more complex due to the absence of a bridge rectifier.The proposed PCM controller, initially designed for PFC boost converters, was extended to totem-pole converters.The study addresses the challenges of controller compatibility through the introduction of three input current sensing methods.Simulation experiments conducted using MATLAB/Simulink revealed that all three sensing methods resulted in nearly identical THD of about 4.42% under steady-state conditions.The outcomes highlight that method 3, which employed a single current sensor across the input inductor, was the optimal and cost-effective sensing solution.It provided fast and robust control with the advantage of utilizing only a single current sensor.This method's simplicity and efficiency offer a significant advantage over the other methods evaluated.Method 1 had a similar performance to method 3.However, it lacks the simplicity and cost benefits associated with method 3, making it a less preferred option when considering the balance between complexity and efficiency.Lastly, the integration of sensing method 2 into the totem-pole's PCM controller was found to be impractical due to its poor performance.This research contributes to the understanding and implementation of efficient PFC control in totem-pole converters, paving the way for enhanced performance and practical applications in power electronics and energy-efficient technologies.
Since D in (A20) is a variable value at steady-state operation, the control method cannot be used in the PFC SEPIC converter.

Figure 1 .
Figure 1.(a) A PFC boost converter circuit illustrating where the current sensor for the PFC PCM controller is installed.(b) Represents the controlled switch current waveform, while (c) illustrates the PWM waveform generated by the PFC peak current-mode control method.

Figure 1 .
Figure 1.(a) A PFC boost converter circuit illustrating where the current sensor for the PFC PCM controller is installed.(b) Represents the controlled switch current waveform, while (c) illustrates the PWM waveform generated by the PFC peak current-mode control method.
Figure 2 represents the PFC PCM control block diagram for the boost converter.

Figure 2 .
Figure 2. PFC peak current-mode control Simulink block diagram used in the PFC boost converter.

Figure 2 .
Figure 2. PFC peak current-mode control Simulink block diagram used in the PFC boost converter.

Figure 3 .
Figure 3. Totem-pole converter circuit with low frequency rectification using (a) switches (Q3 and Q4), and (b) diodes (D1 and D2).(c) illustrates their operation in CCM assuming Q3 and Q4 controlled to behave similar to diodes.When 1 and 3 are open, while 2 and 4 are closed:

Figure 3 .
Figure 3. Totem-pole converter circuit with low frequency rectification using (a) switches (Q3 and Q4), and (b) diodes (D1 and D2).(c) illustrates their operation in CCM assuming Q3 and Q4 controlled to behave similar to diodes.When Q1 and Q3 are open, while Q2 and Q4 are closed:

Figure 4 .
Figure 4. Illustrating the nature of the switch current  and  waveforms.

Figure 5 .
Figure 5. Illustration of the three proposed sensing methods for controlling the input current of the totem-pole converter.The figure includes the current sensor placement on the totem-pole circuit for each method, the waveforms demonstrating the controller's operation, and the Simulink controller block diagram.Where subfigures (a.1,b.1,c.1)represent the plots of the grid voltage and the sensed current waveforms corresponding to sensing method 1, 2, and 3, respectively.Their zoomed-in sensed current waveforms, showing two switching periods, are illustrated respectively in subfigures (a.2,b.2,c.2) for the positive half cycles of the grid waveforms, while the negative half cycles are shown in subfigures (a.3,b.3,c.3).

Figure 4 .
Figure 4. Illustrating the nature of the switch current I Q1 and I Q2 waveforms.

Figure 4 .
Figure 4. Illustrating the nature of the switch current  and  waveforms.

Figure 5 .
Figure 5. Illustration of the three proposed sensing methods for controlling the input current of the totem-pole converter.The figure includes the current sensor placement on the totem-pole circuit for each method, the waveforms demonstrating the controller's operation, and the Simulink controller block diagram.Where subfigures (a.1,b.1,c.1)represent the plots of the grid voltage and the sensed current waveforms corresponding to sensing method 1, 2, and 3, respectively.Their zoomed-in sensed current waveforms, showing two switching periods, are illustrated respectively in subfigures (a.2,b.2,c.2) for the positive half cycles of the grid waveforms, while the negative half cycles are shown in subfigures (a.3,b.3,c.3).

Figure 5 . 1 .
Figure 5. Illustration of the three proposed sensing methods for controlling the input current of the totem-pole converter.The figure includes the current sensor placement on the totem-pole circuit for each method, the waveforms demonstrating the controller's operation, and the Simulink controller block diagram.Where subfigures (a.1,b.1,c.1)represent the plots of the grid voltage and the sensed current waveforms corresponding to sensing method 1, 2, and 3, respectively.Their zoomed-in sensed current waveforms, showing two switching periods, are illustrated respectively in subfigures (a.2,b.2,c.2) for the positive half cycles of the grid waveforms, while the negative half cycles are shown in subfigures (a.3,b.3,c.3).

Figure 6 .
Figure 6.The characteristics of the AIMW120R080M1 SiC MOSFETs used in the simulation.

Figure 6 .
Figure 6.The characteristics of the AIMW120R080M1 SiC MOSFETs used in the simulation.

Figure 7 . 1 M
Figure 7. Comparing the simulated totem-pole converter input current and output voltage waveforms produced by the three proposed sensing methods.A zoomed waveform capture of the last two waveforms of the input grid voltage and current are illustrated as well.

Figure 7 .
Figure 7. Comparing the simulated totem-pole converter input current and output voltage waveforms produced by the three proposed sensing methods.A zoomed waveform capture of the last two waveforms of the input grid voltage and current are illustrated as well.

Figure 7 .Figure 8 .
Figure 7. Comparing the simulated totem-pole converter input current and output voltage waveforms produced by the three proposed sensing methods.A zoomed waveform capture of the last two waveforms of the input grid voltage and current are illustrated as well.

Figure 8 .
Figure 8.(a) FFT analysis of the input current waveform for each method used captured at the 25th cycle and (b) the THD values for the input current of the totem-pole converter at every cycle for the first 25th cycles.

Figure 9 .
Figure 9. Totem-pole converter waveforms after running a load disturbance test from 2 kW to 1 kW at 0.2 s to compare the three proposed sensing methods.

Figure 9 .
Figure 9. Totem-pole converter waveforms after running a load disturbance test from 2 kW to 1 kW at 0.2 s to compare the three proposed sensing methods.

Table 3 .
The details and parameters for the selected SiC MOSFET in the simulation.

Table 4 .
Performance assessment data for the previous experiment.

Table 4 .
Performance assessment data for the previous experiment.